ListIndex Property

Returns or sets the index of the currently selected item in the ComboONE. Not available at design time.

Syntax

object.Listindex [ = index ]

The List property syntax has these parts;

Part

Description

 
object An object expression that evaluates to an instance of ComboONE.
index A numeric expression specifying the index of the current item, as described in Settings.

Remarks

The expression dboCombo1.List(dbpCombo1.ListIndex) returns the string for the currently selected item.

The first item in the list is ListIndex = 0, and ListCount is always one more than the largest ListIndex value.

ListIndex value set to -1indicates that no item if the list has been selected.

 

 

Copyright (c) 1998 DBPro - Database Solutions for Professionals GmbH